package com.example.service;

import com.example.bean.User;

import java.util.List;

public interface UserService {
    //根据id查用户
    public User selectUserById(int userId);
    //查所有用户
    public List<User> selectUserAll();
    //添加用户
    public int insertUser(User user);
    //删除用户
    public int deleteUser(int userId);
    //更改用户信息
    public int updateUser(User user);
}
